package com.someclip.component.container
{
	import com.someclip.component.core.Component;
	import com.someclip.component.interfaces.IComponent;
	import com.someclip.component.interfaces.IContainer;
	import com.someclip.utils.drag.core.IDragObjectAcceptAble;
	import flash.display.DisplayObject;
	import flash.geom.Point;

	/**
	 * ...
	 * @author Argus
	 */
	public class Container extends Component implements IComponent, IContainer, IDragObjectAcceptAble
	{

		public function Container()
		{
			this.width=100;
			this.height=100;
			this.fillColor=0xcccccc;
		}

		public function handleDropObject(dropedObject:DisplayObject, dropPoint:Point):void
		{
			addChild(dropedObject);
			dropedObject.x=dropPoint.x;
			dropedObject.y=dropPoint.y;
		}
	}

}
